package com.kly.sc.api.application.strategy;

import com.kly.user.dto.UserConversationDto;
import com.kly.user.dto.UserConversationRecordDto;
import com.kly.user.enums.ConversationType;

import java.util.List;
import java.util.Map;
import java.util.Optional;

public class DynamicValueNode implements RuleNode {
    private final int baseValue;

    public DynamicValueNode(int baseValue) {
        this.baseValue = baseValue;
    }

    @Override
    public int evaluate(Map<Integer, List<UserConversationRecordDto>> userRecordListMap, int conversationsNumber) {
        return baseValue - conversationsNumber;
    }
}
